package com.jiyun.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.mapper.ZlTeamMapper;
import com.jiyun.model.information.ZlDoctor;
import com.jiyun.model.information.ZlTeam;
import com.jiyun.service.IZlTeamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author
 * @since 2024-09-22
 */
@Service
public class ZlTeamServiceImpl extends ServiceImpl<ZlTeamMapper, ZlTeam> implements IZlTeamService {

    @Autowired
    private ZlTeamMapper zlTeamMapper;


    @Override
    public IPage<ZlTeam> findPage(Integer pn, Integer ps, ZlTeam zlTeam) {

        Page<ZlTeam> page = new Page<>(pn, ps);
        return zlTeamMapper.findPage(page,zlTeam);
    }

    @Override
    public List<ZlTeam> findTeam(Integer id) {
        return zlTeamMapper.findTeam(id);
    }

    @Override
    public List<ZlDoctor> findTeamDoctor(ZlTeam zlTeam) {
        return zlTeamMapper.findTeamDoctor(zlTeam);
    }

    @Override
    public List<ZlDoctor> findTeamDoctor2(ZlTeam zlTeam) {
        return zlTeamMapper.findTeamDoctor2(zlTeam);
    }

    @Override
    public List<ZlDoctor> findTeamDoctorByiId(Integer id) {
        return zlTeamMapper.findTeamDoctorById(id);
    }

    @Override
    public List<ZlTeam> findJidTeam(Integer id) {
        return zlTeamMapper.findJidTeam(id);
    }
}
